//
//  UIImage+PPImage.h
//  pickpic
//
//  Created by 胡文广 on 2017/5/11.
//  Copyright © 2017年 MicroDream. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (PPImage)
+ (UIImage *)ct_imageFromImage:(UIImage *)image inRect:(CGRect)rect;

-(UIImage*)getSubImage:(CGRect)rect;

+ (UIImage *)captureScrollView:(UIScrollView *)scrollView;

+ (UIImage *)imageFromView: (UIView *) theView;

//指定宽度按比例缩放
-(UIImage *) imageCompressForWidth:(UIImage *)sourceImage targetWidth:(CGFloat)defineWidth;

+ (UIImage *)cacheShareCover:(NSString *)url;

+ (UIImage *)imageWithColor:(UIColor *)color;

- (UIImage *)blurryImagewithBlurLevel:(CGFloat)blur;


+ (UIImage *)imageFromView: (UIView *) theView   atFrame:(CGRect)r;

+ (UIImage *)pq_cutScreenWithView:(nullable UIView *)view cutFrame:(CGRect)frame;
@end
